package com.quad.innovators.salesease.converter;

import com.quad.innovators.salesease.model.entity.warehouse.ReturnOrderDetail;
import com.quad.innovators.salesease.model.entity.warehouse.SaleOrderDetail;
import com.quad.innovators.salesease.model.form.warehouse.ReturnOrderDetailForm;
import com.quad.innovators.salesease.model.form.warehouse.SaleOrderDetailForm;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;

/**
 * @author : shanshan.li
 * @createTime : 2024/12/18 16:04
 * @Version : 1.0 
 */
@Mapper(componentModel = "spring")
public interface ReturnOrderDetailConverter {

    ReturnOrderDetailForm toForm(ReturnOrderDetail entity);

    @InheritInverseConfiguration(name = "toForm")
    ReturnOrderDetail toEntity(ReturnOrderDetailForm entity);
}
